<?php $self = 'self' . time() . rand(1, 10000); ?>
<style type="text/css">
    #ajaxAddTaskOperateForm .form-body .form-group {
        width: 50%;
        float: left;
    }

    #ajaxAddTaskOperateForm .form-body .form-group .col-xs-3 {
        width: 45%;
    }

    #ajaxAddTaskOperateForm .form-body .form-group .col-xs-4 {
        width: 45%;
    }

    .ECalendarBox {
        z-index: 100;
    }

    .ECalendarBox .currentdate h2 {
        margin-top: 0px;
    }

    .modal-dialog {
        width: 1280px;
    }

    td {
        text-align: center;
    }

    tr{
        line-height: 35px;
    }
    .modal_image_list .form-group {
        float: left;
        margin-top: 30px;
    }

    .modal_image_list img {
        float: left;
        margin-left: 30px;
    }
</style>
<link href="<?= image_url('/static/assets/global/css/ecalendar-style.css') ?>" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<?= image_url('/static/js/Ecalendar.jquery.min.js') ?>"></script>
<script type="text/javascript" src="<?=image_url('/static/assets/global/scripts/zoomify.min.js')?>"></script>
<link rel="stylesheet" type="text/css" href="<?=image_url('/static/assets/global/css/zoomify.min.css')?>"/>
<div class="portlet-body form">
    <div class="form-body">
        <div class="table-scrollable">
            <table class="table table-hover table-bordered table-striped">
                <tr>
                    <td align="right" width="10%">订单ID：</td>
                    <td class="bold" width="15%"><?= $detail->id ?></td>
                    <td align="right" width="10%">订单号：</td>
                    <td class="bold" width="15%"><?= $detail->order_no ?></td>
                    <td align="right" width="10%">预支付单号：</td>
                    <td class="bold" width="15%"><?= $detail->out_trade_no ?></td>
                    <td align="right">订单金额：</td>
                    <td class="bold">
                        ￥<?= $detail->amount ?>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="10%">租车用户：</td>
                    <td class="bold" width="15%">
                        <img class="o-img img-rounded" src="<?= $detail->avatar ?>" alt="<?= $detail->nick_name ?>">
                        <span class="o-name"><?= $detail->nick_name ?></span>
                    </td>
                    <td align="right" width="10%">用户ID：</td>
                    <td class="bold" width="15%"><?= $detail->user_id ?></td>
                    <td align="right">性别：</td>
                    <td class="bold"><?= $detail->sex?($detail->sex == 1?'男':'女'):'未知' ?></td>
                    <td align="right" width="10%">用户注册时间：</td>
                    <td class="bold" width="15%"><?= date('Y-m-d H:i:s', $detail->u_create_time) ?></td>
                </tr>
                <tr>
                    <td align="right" width="10%">车辆信息：</td>
                    <td class="bold" width="15%">
                        <img class="o-img img-rounded" src="<?= image_url($detail->picture) ?>" alt="<?= $detail->name ?>">
                        <span class="o-name"><?= $detail->name ?></span>
                    </td>
                    <td align="right" width="10%">车辆ID：</td>
                    <td class="bold" width="15%"><?= $detail->car_id ?></td>
                    <td align="right" width="10%">车辆单价：</td>
                    <td class="bold" width="15%"><?= $detail->price ?>/天</td>
                    <td align="right">车辆状态：</td>
                    <td class="bold"><?= $detail->c_status?($detail->sex == 1?'使用中':'维修中'):'空闲' ?></td>
                </tr>
                <tr>
                    <td align="right">订单状态：</td>
                    <td class="bold">
                    <?= IOSS_StaticConfig::getOrderType($detail->status) ?>
                    </td>
                    <td align="right" width="10%">支付状态：</td>
                    <td class="bold" width="15%"><?= $detail->pay_status?'已支付 - ' . date('Y-m-d H:i:s', $detail->pay_time):'未支付' ?></td>
                    <td>还车时间：</td>
                    <td class="bold">
                        <?= $detail->return_time?date('Y-m-d H:i:s', $detail->return_time):'<label class="label label-warning">未还车</label>' ?>
                    </td>
                    <td align="right" width="10%">使用时长：</td>
                    <td class="bold" width="15%">
                        <?= $detail->return_time?secsToStr($detail->return_time - $detail->create_time):'未还车' ?>
                    </td>
                </tr>
            </table>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        </div>
    </div>
</div>


